package com.ethink.order.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

import com.ethink.framework.common.db.SuperEntity;

/**
 * 采购详情单 数据库实体
 *
 * @author default
 * @date 2022-10-31
 */
@Data
@TableName("t_purchase_order_detail")
public class PurchaseOrderDetail extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String DETAIL_ORDER_NO ="detail_order_no";

    public static final String SALE_DEMAND_ORDER_NO ="sale_demand_order_no";

    public static final String SALE_DEMAND_DETAIL_ORDER_NO ="sale_demand_detail_order_no";

    public static final String DETAIL_ORDER_STATUS ="detail_order_status";

    public static final String MATE_CODE ="mate_code";

    public static final String MATE_NAME ="mate_name";

    public static final String MATE_SKU ="mate_sku";

    public static final String MATE_SKU_NAME ="mate_sku_name";

    public static final String GENERA_CODE ="genera_code";

    public static final String GENERA_CODE_NAME ="genera_code_name";

    public static final String MINOR_DEFECTS_CODE ="minor_defects_code";

    public static final String MINOR_DEFECTS_CODE_NAME ="minor_defects_code_name";

    public static final String SUBCLASS_CODE ="subclass_code";

    public static final String SUBCLASS_CODE_NAME ="subclass_code_name";

    public static final String CATEGORY_NAME ="category_name";

    public static final String BRAND_CODE ="brand_code";

    public static final String BRAND_NAME ="brand_name";

    public static final String INTERNATION_CODE ="internation_code";

    public static final String UNIT_CODE ="unit_code";

    public static final String UNIT_NAME ="unit_name";

    public static final String PRODUCT_SPECIFICATION ="product_specification";

    public static final String SUPPLIER_CODE ="supplier_code";

    public static final String SUPPLIER_NAME ="supplier_name";

    public static final String PAY_TYPE ="pay_type";

    public static final String PURCHASE_PRICE ="purchase_price";

    public static final String PURCHASE_PRICE_BB ="purchase_price_bb";

    public static final String CURRENCY_CODE ="currency_code";

    public static final String CURRENCY_NAME ="currency_name";

    public static final String PRICE_VALIDITY_PERIOD ="price_validity_period";

    public static final String VALIDITY_PERIOD ="validity_period";

    public static final String AVAILABLE_QTY ="available_qty";

    public static final String LOCK_ORDER_QTY ="lock_order_qty";

    public static final String PURCHASE_QTY ="purchase_qty";

    public static final String FINAL_PURCHASE_PRICE ="final_purchase_price";

    public static final String DELIVERY_WAY ="delivery_way";

    public static final String DELIVERY_PLACE ="delivery_place";

    public static final String EXPECT_SUPPLIER_TIME ="expect_supplier_time";

    public static final String CREATE_USER_CODE ="create_user_code";

    public static final String CREATE_USER_NAME ="create_user_name";

    public static final String IS_LOCK ="is_lock";


    /** 采购单号 */
    private String orderNo;

    /** 采购详情单号 */
    private String detailOrderNo;

    /** 销售需求单号 */
    private String saleDemandOrderNo;

    /** 销售需求详情单号 */
    private String saleDemandDetailOrderNo;

    /** 枚举 订单状态:1-已提报(s1)|2-已中标(s2)|3-未中标(s3) */
    private Integer detailOrderStatus;

    /** 商品编码 */
    private String mateCode;

    /** 商品名称 */
    private String mateName;

    /** 商品SKU */
    private String mateSku;

    /** 商品规格 */
    private String mateSkuName;

    /** 大类编号 */
    private String generaCode;

    /** 大类编号名称 */
    private String generaCodeName;

    /** 中类编号 */
    private String minorDefectsCode;

    /** 中类编号名称 */
    private String minorDefectsCodeName;

    /** 小类编号 */
    private String subclassCode;

    /** 小类编号名称 */
    private String subclassCodeName;

    /** 商品分类 */
    private String categoryName;

    /** 品牌编码 */
    private String brandCode;

    /** 品牌名称 */
    private String brandName;

    /** 商品条码 */
    private String internationCode;

    /** 包装单位编码 */
    private String unitCode;

    /** 包装单位编码 */
    private String unitName;

    /** 商品规格 */
    private String productSpecification;

    /** 供应商编码 */
    private String supplierCode;

    /** 供应商名称 */
    private String supplierName;

    /** 枚举 付款方式:1-100%预付(t1)|2-先贷后款(t2)|3-分期付款(t3) */
    private Integer payType;

    /** 采购报价 */
    private BigDecimal purchasePrice;

    /** 采购报价本币 */
    private BigDecimal purchasePriceBb;

    /** 报价货币编码 */
    private String currencyCode;

    /** 报价货币名称 */
    private String currencyName;

    /** 采购价有效期 */
    private Date priceValidityPeriod;

    /** 有效期 */
    private Date validityPeriod;

    /** 可供数量 */
    private Integer availableQty;

    /** 锁单数量 */
    private Integer lockOrderQty;

    /** 最终采购数量 */
    private Integer purchaseQty;

    /** 最终采购价 */
    private BigDecimal finalPurchasePrice;

    /** 交货方式 */
    private String deliveryWay;

    /** 交货地点 */
    private String deliveryPlace;

    /** 供应商预计交货时间 */
    private Date expectSupplierTime;

    /** 制单人账号 */
    private String createUserCode;

    /** 制单人名称 */
    private String createUserName;

    /**是否锁定*/
    private Boolean isLock;

}
